package org.jeecg.modules.demo.com.kunpeng.service.impl;

import org.jeecg.modules.demo.com.kunpeng.entity.PurchaseContractDetail;
import org.jeecg.modules.demo.com.kunpeng.mapper.PurchaseContractDetailMapper;
import org.jeecg.modules.demo.com.kunpeng.service.IPurchaseContractDetailService;
import org.springframework.stereotype.Service;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @Description: 采购合同明细
 * @Author: jeecg-boot
 * @Date:   2022-12-23
 * @Version: V1.0
 */
@Service
public class PurchaseContractDetailServiceImpl extends ServiceImpl<PurchaseContractDetailMapper, PurchaseContractDetail> implements IPurchaseContractDetailService {
	
	@Autowired
	private PurchaseContractDetailMapper purchaseContractDetailMapper;
	
	@Override
	public List<PurchaseContractDetail> selectByMainId(String mainId) {
		return purchaseContractDetailMapper.selectByMainId(mainId);
	}

	@Override
	public void deleteById(String id) {
		System.out.println("根据id删除采购合同详情数据");
		int i = purchaseContractDetailMapper.deleteById(id);
		System.out.println("受影响的行数："+i);
	}
}
